home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- rack_status = _root.rackControl.rackStatus();
- if(!childAtTill && rack_status == "full")
- {
- timeWait--;
- if(timeWait == 0)
- {
- rndChild = 1 + Math.floor(Math.random() * 4);
- childBagValue = _root.rackControl.getSweetbagValue();
- _root.customer.gotoAndPlay("k" + rndChild + "_show");
- childAtTill = true;
- childType = rndChild;
- timeWait = 20 + Math.floor(Math.random() * 80);
- }
- }
- }
-